From: Tim Starling Date: Sun, 21 Sep 2008 08:44:20 +0000 (+0000) Subject: wfGetDB() needs a parameter. X-Git-Tag: 1.31.0-rc.0~45183 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=50899edfb750b3b44f9fe72f51c9ef809b1ae423;p=lhc%2Fweb%2Fwiklou.git wfGetDB() needs a parameter. --- diff --git a/includes/Article.php b/includes/Article.php index 7b41a0876d..eeff834474 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2137,7 +2137,7 @@ class Article { * @return int approximate revision count */ function estimateRevisionCount() { - $dbr = wfGetDB(); + $dbr = wfGetDB( DB_SLAVE ); // For an exact count... //return $dbr->selectField( 'revision', 'COUNT(*)', // array( 'rev_page' => $this->getId() ), __METHOD__ );